package com.honey.eclipse.formatter.style;

import java.util.Map;

import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jdt.core.formatter.DefaultCodeFormatterConstants;

public class DefaultStyle implements StyleFormatterSettings{
	
	@Override
	public Map<String, String> getSettings() {
		Map<String, String> answer = DefaultCodeFormatterConstants.getEclipseDefaultSettings();
		answer.put(JavaCore.COMPILER_COMPLIANCE, JavaCore.VERSION_1_6);  
		answer.put(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM, JavaCore.VERSION_1_6);  
		answer.put(JavaCore.COMPILER_SOURCE, JavaCore.VERSION_1_6);  
		 
		answer.put(// change the option to wrap each enum constant on a new line  
				DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ENUM_CONSTANTS,  
				DefaultCodeFormatterConstants.createAlignmentValue(  
						true,  
						DefaultCodeFormatterConstants.WRAP_ONE_PER_LINE,  
						DefaultCodeFormatterConstants.INDENT_ON_COLUMN
				)
		);
		return answer ;
	
	}
	

	

}
